<template>
  <!-- 外层最大的盒子 -->
  <div class="mytool">
    <!-- 卡片容器 -->
    <el-card>
      <!-- 包裹左右内容的盒子 -->
      <div class="content">
        <!-- 左边的内容 -->
        <div class="left">
          <div class="leftbox" v-if="!hideLeft">
            <slot name="left">
              <i class="el-icon-info"></i>
              <span>本月：社保在缴 公积金在缴 增员 减员 入职 离职</span>
            </slot>
          </div>
        </div>
        <!-- 右边的内容 -->
        <div class="right">
          <slot name="right">
            <el-button type="primary" size="mini">文件归档</el-button>
            <el-button type="primary" size="mini">导入</el-button>
          </slot>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  props: ["hideLeft"],
};
</script>

<style lang="scss">
.mytool {
  .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left {
      .leftbox {
        font-size: 14px;
        border: 1px solid #a4ddff;
        padding: 8px;
        background-color: #e7f7ff;
        i {
          color: skyblue;
        }
      }
    }
  }
}
</style>
